﻿<%@ Page Language="C#" MasterPageFile="~/ad/AdminFShop.master" AutoEventWireup="true" CodeFile="EditCategory.aspx.cs" Inherits="EditCategory" Title="Edit Category" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table border="0" cellpadding="0" cellspacing="0" width="100%">            
    <tr>	
     <td align="left"  valign="top">          
             <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">  
                                 
                 <tr id="tieude" >
                     <td align="right" class="tieude" 
                         style="padding: 10px; height: 21px; text-align: center; font-family: TAhoma; font-size: 20px; background-color: #808080; color: #FFFFFF; " 
                         colspan="2">
	       QUẢN LÝ DANH MỤC
                    </td>
                 </tr>
                
                 <tr style="padding-top: 10px; height: 30px">
                     <td align="right" class="rowContent" style="height: 30px; width: 128px;">
                         &nbsp;</td>
                     <td style="width: 80%; height: 30px;">
                         &nbsp;</td>
                 </tr>
                
                 <tr style="padding-top: 10px; height: 30px">
                     <td align="right" class="rowContent" style="height: 30px; width: 128px;">
                         Danh mục cha:&nbsp;
                     </td>
                     <td style="width: 80%; height: 30px;">
                         <asp:DropDownList ID="ddlCategory" runat="server" Width="162px" 
                             DataSourceID="SqlDataSource1" DataTextField="Menu" DataValueField="IDMenu">                        
                             <asp:ListItem Value="0">Danh mục cha</asp:ListItem>
                         </asp:DropDownList>
                      
                         <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                             ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                             SelectCommand="SELECT * FROM [MENU]"></asp:SqlDataSource>
                      
                     </td>
                 </tr>
                <tr style="height:30px; padding-top:10px;">
                    <td class="rowContent"  align="right" style="width: 128px">
                        Tên danh mục:&nbsp;</td>
                    <td style="width: 80%">
                        &nbsp;<dx:ASPxTextBox ID="txtCateName" runat="server" Height="19px" Width="48%">
                        </dx:ASPxTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCateName"
                            ErrorMessage="Bạn chưa nhập tên cho danh mục này" ToolTip="Bạn chưa nhập tên cho danh mục này"></asp:RequiredFieldValidator>
                        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                            TargetControlID="RequiredFieldValidator2" WarningIconImageUrl="../Images/missValue.png">
                        </ajaxToolkit:ValidatorCalloutExtender>
                    </td>
                </tr>
                <tr style="height:30px;">
                    <td class="rowContent" align="right" style="height: 30px; width: 128px;">
                        Liên kết tới :&nbsp;&nbsp; &nbsp;</td>
                    <td style="width: 80%; height: 30px;">
                        <dx:ASPxTextBox ID="txtCateLink" runat="server" Width="48%">
                        </dx:ASPxTextBox>
                    </td>
                </tr>                
                <tr style="height:30px;">
                    <td class="rowContent"  align="right" style="height: 30px; width: 128px;">
                        Trạng thái:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>                                            
                    <td style="width: 80%; height: 30px;">
                        &nbsp;
                        <asp:CheckBox ID="chkStatus" runat="server" Text="Hiển thị" />
                        </td>
                </tr>
                 <tr>
                    <td align="right" style="height: 22px; width: 128px;"></td>                    
                    <td align="right" style="height: 22px"></td>                    
                </tr>
                 <tr style="height:30px;">
                    <td class="rowContent"  align="center" colspan="2">&nbsp;
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                            Text="Quay lại" />
						<input type="submit" value="Thêm" runat="server" id="btnAdd" onserverclick="btnAdd_Click" style="width: 73px"  onclick="return btnAdd_onclick()" />
						<input type="submit" value="Sửa" runat="server" id="btnEdit" onserverclick="btnEdit_Click" style="width: 73px"  />
						<input type="reset" value="Hủy"   style="width: 73px" onclick="javascript :ClearForm();" />
                    </td>
                </tr>
                   
            </table>
      </td>
    </tr>
    
</table>   

<script language="javascript" type="text/javascript">
    function ClearForm()
    {    
        document.getElementById('<%=txtCateName.ClientID%>').Text = "";
        document.getElementById('<%=txtCateLink.ClientID%>').Text = "";
    }
    function CheckValidate()
    {        
        return true;      
    }
    function btnAdd_onclick() {

    }

</script>

</asp:Content>


